var variable = 'javascript';

var variable;

for (var i = 0; i < 10; i++) {
	doSomething(i);
}
console.log(i);

function sum(num1, num2) {
	return num1 + num2;
}

console.log(sum(10, 18));

var sum = function(num1, num2) {
	return num1 + num2;
}；

(function() {
	//doSomething
})();


function Person(name, age, job) {
	this.name = name;
	this.age = age;
	this.job = job;
	this.sayName = function() {
		alert(this.name);
	};
}
var person1 = new Person("Nicholas", 29, "Software Engineer");
var person2 = new Person("Greg", 27, "Doctor");